<template>
	<view>
		<view class="grid-container">
			<view class="grid">
				<view @click="goJiyang()" class="grid-item">
					<image src="../../../static/home/jiyang.png"></image>
					<view class="text-container">
						<text>寄养服务</text>
					</view>
				</view>
				<view class="divide"></view>
				<view @click="gofankui()" class="grid-item">
					<image src="../../../static/home/fankui.png"></image>
					<view class="text-container">
						<text>问题反馈</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
	import {ref,reactive} from "vue"
	
	function goJiyang(){
		uni.navigateTo({
			url:"/pages/jiyang/index"
		})
	}
	function gofankui(){
		uni.navigateTo({
			url:"/pages/fankui/index"
		})
	}
</script>

<style lang="scss">
	.grid-container{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		
		.grid{
			display: flex;
			background-color: #ffffff;
			align-items: center;
			padding: 0 20rpx;
			justify-content: space-between;
			border-radius:20rpx;
			width: 90%;
			height: 300rpx;
			box-shadow: 0 12rpx 64rpx -14rpx rgba(0, 0, 0, 0.25);
			
			&-item{
				width: 48%;
				height: 80%;
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction: column;
				
				image{
					width: 30%;
					height: 30%;
					margin-bottom: 20rpx;
				}
				
				.text-container{
					display: flex;
					align-items: center;
					text{
						font-size: 40rpx;
						font-weight: 400;
						letter-spacing: 0.05em;
					}
					
					.tag{
						margin-left: 10rpx;
						display: flex;
						align-items: center;
						justify-content: center;
						padding: 10rpx 20rpx;
						border-radius: 30rpx;
						font-size: 18rpx;
						background-color: #ff848e;
						color: #ffe4e9;
						letter-spacing: 0.2em;
					}
				}
			}
			.divide{
				width: 2rpx;
				height: 200rpx;
				background-color: #f6f6f6;
				
			}
		}
	}
</style>
